package cn.itsource.ymcc.service.impl;

import cn.itsource.ymcc.domain.Systemdictionaryitem;
import cn.itsource.ymcc.mapper.SystemdictionaryitemMapper;
import cn.itsource.ymcc.service.ISystemdictionaryitemService;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Eric Chen
 * @since 2022-07-06
 */
@Service
public class SystemdictionaryitemServiceImpl extends ServiceImpl<SystemdictionaryitemMapper, Systemdictionaryitem> implements ISystemdictionaryitemService {
    @Override
    @Cacheable(cacheNames="list",key="'systemdictionaryitem'")
    public List<Systemdictionaryitem> selectList(Wrapper<Systemdictionaryitem> wrapper) {
        return super.selectList(wrapper);
    }

    @Override
    @Cacheable(cacheNames="id",key="'systemdictionaryitem'")
    public Systemdictionaryitem selectById(Serializable id) {
        return super.selectById(id);
    }
}
